package com.example.panpan.userManage.model;

import javax.persistence.*;

@Table(name = "tc_user")
public class TcUser {
    @Id
    @Column(name = "user_id")
    private String userId;

    @Column(name = "user_name")
    private String userName;

    /**
     * M男;W女
     */
    private String sex;

    private String password;

    @Column(name = "user_phone")
    private String userPhone;

    /**
     * 01,高级管理员;11,财务部门经理;12,财务人员;21,人事部门经理;22,人事人员;31,执行部门经理;32,普通部员.
     */
    @Column(name = "role_id")
    private String roleId;

    @Column(name = "depart_id")
    private String departId;

    private String state;

    /**
     * @return user_id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * @return user_name
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取M男;W女
     *
     * @return sex - M男;W女
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置M男;W女
     *
     * @param sex M男;W女
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return user_phone
     */
    public String getUserPhone() {
        return userPhone;
    }

    /**
     * @param userPhone
     */
    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    /**
     * 获取01,高级管理员;11,财务部门经理;12,财务人员;21,人事部门经理;22,人事人员;31,执行部门经理;32,普通部员.
     *
     * @return role_id - 01,高级管理员;11,财务部门经理;12,财务人员;21,人事部门经理;22,人事人员;31,执行部门经理;32,普通部员.
     */
    public String getRoleId() {
        return roleId;
    }

    /**
     * 设置01,高级管理员;11,财务部门经理;12,财务人员;21,人事部门经理;22,人事人员;31,执行部门经理;32,普通部员.
     *
     * @param roleId 01,高级管理员;11,财务部门经理;12,财务人员;21,人事部门经理;22,人事人员;31,执行部门经理;32,普通部员.
     */
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    /**
     * @return depart_id
     */
    public String getDepartId() {
        return departId;
    }

    /**
     * @param departId
     */
    public void setDepartId(String departId) {
        this.departId = departId;
    }

    /**
     * @return state
     */
    public String getState() {
        return state;
    }

    /**
     * @param state
     */
    public void setState(String state) {
        this.state = state;
    }
}